package com.dz.xjd.ui.activity;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.dz.xjd.R;
import com.dz.xjd.app.App;
import com.dz.xjd.ui.base.BaseActivity;
import butterknife.BindView;
import butterknife.OnClick;

public class PersonalSettingsActivity extends BaseActivity {

    @BindView(R.id.layout_top_tv_left)
    TextView mTvTitleBack;

    @BindView(R.id.layout_top_tv_title)
    TextView mTvtitle;

    @BindView(R.id.lay_logout_out)
    LinearLayout mLayout;
    @Override
    protected int getLayout() {
        return R.layout.activity_personal_settings;
    }

    @Override
    protected void init() {
        mTvtitle.setText("个人设置");
    }

    @Override
    public void initPresenter() {

    }

    @OnClick({R.id.btn_login_login, R.id.lay_logout_out})
    void onClick(View v) {
        switch (v.getId()) {
            case R.id.layout_top_tv_left:
                onBackPressed();
                break;

            case R.id.lay_logout_out:
                logout();
                break;
        }
    }

    private void logout(){
        App.mUserBean = null;
        finish();
    }
}
